<div class="add">
	<?php
		echo anchor('/add/person', 'Add person instead');
		echo form_fieldset('Add show');
		// Show validation errors and loginerrors
		echo validation_errors("<p class='error'>"); ?>
		<p class='error'> </p>
		<?php
		// Show loginform
		echo form_open('add/saveShow');
		echo form_label('Name: ', NAME);
		echo form_input(NAME, set_value(NAME, ''));
		echo form_label('Star year: ', START_YEAR);
		echo form_input(START_YEAR, set_value(START_YEAR, ''));
		echo form_label('End year: ', END_YEAR);
		echo form_input(END_YEAR, set_value(END_YEAR, ''));
		echo "<br>";
		echo form_label('Description: ', DESCRIPTION);
		echo "<br>";
		echo form_textarea(DESCRIPTION, set_value(DESCRIPTION, ''));
		echo "<br>";
		echo form_submit('submit', 'Save');
		echo form_fieldset_close();
		//$people = array();
		//foreach ($persons as $person):
		//$people[] = ($person->getFirstname() . " " . $person->getLastname());
		//endforeach;
		//echo "(optional) Add cast";
		//echo form_dropdown('people', $people);
		//echo form_label('Name of character: ', CHARACTER_NAME);
		//echo form_password(CHARACTER_NAME, set_value(CHARACTER_NAME, ''));
		//
		//
		//$functions = array(
		//	'Creator' => 'Creator', 
		//	'Director' => 'Director',
		//	'Writer' => 'Writer'
		//);
		//echo "<br> (optional) Add crew";
		//echo form_dropdown('people', $people);
		//echo "function";
		//echo form_dropdown('people', $functions);
		//echo "<br>";
		?>
</div>